﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Microsoft.Samples.ServiceHosting.StorageClient;
using Ciripescu_WebRole.Entities;
using System.Data.Services.Client;

namespace Ciripescu_WebRole.BL
{
    public class MyServiceContext : TableStorageDataServiceContext
    {
        public MyServiceContext() : 
            base(StorageAccountInfo.GetDefaultTableStorageAccountFromConfiguration()) { }

        #region Users Table
        
        public string  UsersTableName = "Users";
        public DataServiceQuery<User> Users
        {
            get { return CreateQuery<User>(UsersTableName); }
        }
        #endregion

        #region Cirip Table
        
        public string CiripTableName = "Cirip";
        public DataServiceQuery<Cirip> Cirip
        {
            get { return CreateQuery<Cirip>(CiripTableName); }
        }
        #endregion

        #region CiripCache Table
        public string CiripCacheTableName = "CiripCache";
        public DataServiceQuery<CiripCache> CiripCache
        {
            get { return CreateQuery<CiripCache>(CiripCacheTableName); }
        }
        #endregion
        
        #region Followers Table
        
        public string FollowersTableName = "Urmarire";
        public DataServiceQuery<Urmarire> Urmarire
        {
            get { return CreateQuery<Urmarire>(FollowersTableName); }
        }
        #endregion

        #region Invite Table

        public string InviteTableName = "Invite";
        public DataServiceQuery<Invite> Invite
        {
            get { return CreateQuery<Invite>(InviteTableName); }
        }
        #endregion

        #region CiripMessage Table

        public string CiripMessageTableName = "CiripMessage";
        public DataServiceQuery<CiripMessage> CiripMessage
        {
            get { return CreateQuery<CiripMessage>(CiripMessageTableName); }
        }
        #endregion

        #region Voturi Table

        public string VoturiTableName = "Voturi";
        public DataServiceQuery<Vot> Voturi
        {
            get { return CreateQuery<Vot>(VoturiTableName); }
        }
        #endregion

        #region Comment Table

        public string CommentTableName = "Comment";
        public DataServiceQuery<Comment> Comment
        {
            get { return CreateQuery<Comment>(CommentTableName); }
        }
        #endregion
    }
}
